//package com.ticket.websocket;
//
//import javax.servlet.ServletRequestEvent;
//import javax.servlet.ServletRequestListener;
//import javax.servlet.annotation.WebListener;
//import javax.servlet.http.HttpServletRequest;
//
//import org.springframework.stereotype.Component;
//
///**
// * 作用：将所有request请求都携带上httpSession
// * @author zho
// *
// */
//@WebListener//配置Listener
//@Component
//public class RequestListener implements ServletRequestListener {
//
//    public void requestInitialized(ServletRequestEvent sre)  {
//        //将所有request请求都携带上httpSession
//        ((HttpServletRequest) sre.getServletRequest()).getSession();
//
//    }
//    public RequestListener() {
//    }
//
//    public void requestDestroyed(ServletRequestEvent arg0)  {
//    }
//}